package com.hengpeng.msls.service.activity;

import java.util.List;

import com.hengpeng.common.exception.ServiceResult;
import com.hengpeng.itfinbase.en.RewardRebateStatus;
import com.hengpeng.itfinbase.persist.RewardRebate;

/**
 * 返利服务
 * 
 * @author weiyuan
 *
 */
public interface RebateService { 

    /**
     * <pre>
     * 获取指定人员的返利记录
     * </pre>
     * 
     * @param userId
     * @return
     */
    public ServiceResult<List<RewardRebate>> queryMyList(Long userId, Integer curPage, Integer pageSize);

    /**
     * <pre>
     * 根据红包状态获取指定人员的返利
     * </pre>
     * 
     * @param userId
     * @param status
     * @return
     */
    public Long countRewardRebate(Long userId, RewardRebateStatus status);
}
